package org.example.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.Dto.CommunityDTO;
import org.example.Entity.Community;
import org.example.Vo.R;

import java.io.IOException;

public interface CommunityService extends IService<Community> {
    R publish(CommunityDTO communityDTO, String username) throws IOException;

    R flush(Integer type,String username);

    R like(Integer id, String username);

    R getCommunityById(Integer id,String username);
}
